package mytf.core.toolbox;

import java.util.LinkedList;

/**
 * @author chuc
 * 封装Q
 */
public class MyQ {
	private LinkedList queue = new LinkedList();
	
	public  void enQueue(Object t){
		queue.addLast(t);
	}
	
	public Object deQueue(){
		return queue.removeFirst();
	}
	
	public boolean isEmpty(){
		return queue.isEmpty();
	}
	
	public boolean contians(Object t){
		return queue.contains(t);
	}
	
}
